<?php
include_once './pictureColor.php';
$pictureColor = new pictureColor();
$picUrls = array('.\pics\a.jpg','.\pics\b.jpg','.\pics\c.jpg');
foreach ($picUrls as $key=>$url){
    $color=$pictureColor->hexName($url);
    $colorName=$pictureColor->colorName($url);
    echo "<img style='width:100px;float: left;' src='$url'>";
    echo "<div style='width: 100px;height: 100px;float: left;background-color:$color;'>$colorName</div>";
}
?>
